package com.yc.supermarket.service;

import com.yc.supermarket.entity.Collect;
import com.yc.supermarket.entity.Commodity;
import com.yc.supermarket.entity.ProductType;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.Map;

public interface GoodsInfoService {
    Map<String,Object> getCommoditiesByTypeId(Integer typeId);
    Map<String,Object> getCommoditiesByComId(Integer commodityId);
    Map<String,Object> getCommodities();
    Map<String,Object> getCollectById(Integer commodityId);
    Map<String,Object> getProductType();
    Map<String,Object> getCommodityList();
    Map<String,Object> getUserByName(String userName);
    int becomeMember(String userName, BigDecimal newBalance, String registrationDate);
    int addCollect(Collect collect);
    int getUserById(String userName);
    Map<String,Object> getMemberInfoById(String userName);
    int addBalance(String userName,BigDecimal newBalance);
    int delCollect(Integer userId,Integer commodityId);
}
